package com.lusoft.onepiece.util;

import com.lusoft.onepiece.constant.GameConstant;

public class GameUtil {

	public static int randomSpeed(){
		int speed = GameConstant.Velocity.GRAVITY;
		int symbol = (int)(Math.random()*2);
		if(symbol == 1) {
			return -speed;
		}
		return speed;
	}
	
	public static int randomX(){
		return (int)(Math.random()*10)*100;
	}
	
	public static void main(String[] args) {
		System.out.println(randomSpeed());
	}
}
